package com.gp.service.calculate;


public class Test {
	 
    public static void main(String[] args) {
      for(int i=0;i<4;i++) {
        ProfitCalculateProcessor instance = ProfitCalculateProcessor.getInStance();
        instance.loadDataAndRule(new ProfitDataAndRuleFactory());
        instance.calculate();
        Result result = instance.getResult();
        System.out.print("三级收入 ：" + result.getThirdLevelIncome()+"\t");
        System.out.print("二级收入 ：" + result.getSecondLevelIncome()+"\t");
        System.out.print("直属收入 ：" + result.getDirectIncome()+"\t");
        System.out.print("总收入 ：" + result.getGeneralIncome()+"\t");
        System.out.println();
      }
    }
}
